package com.pay.game.central.web.service;

import com.pay.game.central.web.mapper.ClearDataMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ClearDataService {

    @Autowired
    ClearDataMapper clearDataMapper;

    public void clearStoreAndGoods(){
        //先删除商品
        clearDataMapper.clearGoods();
        //然后删除商店
        clearDataMapper.clearStore();
    }
}
